package com.springtiles.model;

import org.springframework.stereotype.Component;

@Component("user") 
public class User {
	private int userId;
	private String userName;

	// 省略get/setter方法
	public String toString() {
		return this.userName + "," + this.userId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}